package com.codechuan.didi_hack;

import android.content.Context;

import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

import com.alibaba.fastjson.JSONObject;
import com.codechuan.didi_hack.common.Constant;
import com.codechuan.didi_hack.entity.SysCarInfo;
import com.codechuan.didi_hack.utils.Demo;
import com.codechuan.didi_hack.utils.DiDiHttpUtil;

import java.io.IOException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.UUID;

/**
 * Instrumented test, which will execute on an Android device.
 *
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() {
//        DiDiHttpUtil.sendCodeWeChatMini("17626023164");
//        DiDiHttpUtil.loginDiDi("17626023164","409840");
        Constant.token = new ArrayList<>();
        Constant.token.add("PSsD7ZnpZl5RVDlcgn4wQDr3F6eda4Cm1UJhFgPqI_gkzDlOxEAQheG7_HHJetXVi7tScu7AYpakkUBElu8-Gs0FvpMlkti0CWM56cYqZDRpGitIH22WUcM1I3ZjVVLGaiRPzxgvJBivZNlL916bh2YbMt5Jr8ZBnvz9_P--HWSTNC_j406HFNOLjE8SH710lfBeMb4e7jep6xYAAP__");

//        HashMap<String, String> hashMap = DiDiHttpUtil.sendCodeWeChatMiniInit("17365595693");
//        String xpsid = hashMap.get("xpsid");
//        String xpsid_root = hashMap.get("xpsid_root");
//        String ddfp = hashMap.get("ddfp");
//        String message = hashMap.get("message");
//
//        String code = "";
//        DiDiHttpUtil.loginDiDi("17365595693",code,xpsid_root,xpsid,ddfp);

    }
}